package org.erp.product.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.erp.product.domain.entity.ConnectLog;

import java.util.List;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ConnectLogTriageDto {
    /**
     * 仓库来源数据
     */
    private List<ConnectLog> warehouseList;
    /**
     * 非仓库来源数据
     */
    private List<ConnectLog> nonWarehouseList;

    public static ConnectLogTriageDto build(List<ConnectLog> warehouseList, List<ConnectLog> nonWarehouseList) {
        ConnectLogTriageDto connectLogTriageDto = new ConnectLogTriageDto();
        connectLogTriageDto.setWarehouseList(warehouseList);
        connectLogTriageDto.setNonWarehouseList(nonWarehouseList);
        return connectLogTriageDto;
    }
}
